Vision system using strobed illumination

ABSTRACT

A vision system for viewing the end face of product ( 64 ) mounted in a machine and which in use produces measurements relating to the area of the end face and of at least one constituent part of the product which is visible in the said end face. The system comprises means for illuminating a region containing the end face and scanning ( 78 ) means for producing a video signal from an image of the illuminated region. The region is illuminated consecutively using first one ( 50 ) and then the other ( 58, 60 ) of two strobed light sources.

FIELD OF THE INVENTION

This invention concerns vision systems, especially vision systems as employed in food cutting and portioning apparatus.

BACKGROUND TO THE INVENTION

It is known to illuminate and view the end face of a length of foodstuff such as meat, using a video camera to obtain a video signal representation of visibly different regions in the end face, such a lean and fat regions, and to process the signal and compute for example the lean to fat ratio as well as the overall area of the end face.

The latter can be employed together with a density value for the foodstuff to compute the distance through which the foodstuff should be moved to enable a slice of a given weight to be cut from the length.

The lean to fat ratio can be compared with stored ratio values, to determine the quality of the portion, and this information can be used to direct the cut portion to one location or another, according to the lean/fat ratio which is usually a measure of the quality of the meat.

Difficulties have been experienced in accurately determining what in the camera field of view is product and what is supporting structure, so that the computation of the area is not always as accurate as it should be. Indeed a key difficulty in using vision systems to analyse product at the slicer cutting point is the acquisition of an accurate image and therefore video signal of the cut face of the product, clearly differentiated from the background to allow accurate image processing of the video signal and quantitative assessment of eg. fat to lean areas. This background may include parts of the machine itself, areas of product contamination and debris, and surface the product which is not part of the cut face.

This has been approached previously by offsetting light sources to the side or below the product, to place non-product cut face material in shadow, in an attempt to allow video signals relating to it to be excluded from video signals relating to the cut face, by thresholding the signal from the camera. A problem with this approach is that conveyors and elements of machine structure close to the product face cast shadows across the face of the product, limiting the possible locations for the vision system components and restricting the possibilities for machine arrangement for optimal product handling

Other techniques have illuminated the sides of the product, casting the cut face in shadow, but this does not allow analysis of the cut face (eg to quantify lean to fat proportions of the cut face) which is now in shadow.

This allows the overall area of the cut face to be computed.

It has also been proposed to use light of different wavelengths, one for generating a structured light pattern of parallel lines across the face of the product and the other producing a monochromatic image of the product face and its surroundings. By processing signals derived from imaging the lines of the structured light, an electronic mask is produced corresponding to the product end face, which is used to gate signals relating to the monochromatic image to leave only the monochromatic image signals of the product face. The response time of such a system is limited by colour camera sensitivity, resolution and read-out time, and it cannot be used with some of the higher speed product slicing machines.

The present invention seeks to provide a vision system which has a higher speed of response than the previously proposed system which nevertheless can be used to produce accurate measurements of the end face of a length of foodstuff, especially meat, and in particular an accurate measurement of the area of the end face and of the ratio of one constituent part of the foodstuff from at least one other constituent part thereof, when both are present in the end face.

The invention also seeks to provide a video signal from which the shape of the end face can be determined by reference to pre-stored shape data.

Furthermore, the invention seeks to provide apparatus and methods by which data obtained by the improved vision system can be used to control the slicing and packaging of the sliced product.

SUMMARY OF THE INVENTION

According to one aspect of the present invention there is provided a vision system for viewing the end face of product mounted in a machine, which in use produces measurements relating to the area of the end face and of at least one constituent part of the product which is visible in the said end face, wherein the vision system comprises means for illuminating a region containing the end face, and scanning means for producing a video signal from an image of the illuminated region, wherein the region is illuminated consecutively using first one and then the other of two strobed light sources, one of which is a laser line source which in use produces a pattern of lines of light and the other of which in use operates to illuminate the region in a generally uniform manner, thereby to produce two images of the region, one after the other, to the scanning means.

The pattern is preferably one of parallel spaced-apart lines of light.

In a preferred embodiment the said one light source comprises a laser with a parallel line pattern generating optical head.

In another embodiment the said one light source comprises one or more laser line pattern generators.

Preferably, the light pattern extends over the whole region.

The said other light source may comprise an LED light source, which is constructed so that in use it produces substantially uniform illumination of the whole region.

Conveniently it comprises an array of power LEDs, or an LED spot light.

Where the said other light source is an LED spotlight, a collimating lens may be employed between it and the region to be illuminated which is selected so as to spread the beam of light issuing from the LED source so that it covers the whole of the region.

Although white light or light of a predominantly single wavelength can be employed to produce each of the two images at the scanning means, light of two different wavelengths may be employed consecutively to produce the two different images.

Typically the overall area-illumination may be performed using white or red light, while the pattern of lines is preferably formed using red light if the product is meat.

The laser source may form a part of a structured light generating head which in use produces a series of parallel straight lines of monochromatic light, typically equally spaced apart, on the product end face. The laser typically produces red light if the product is meat, but other coloured light of different wavelengths may be used to advantage with other foodstuffs.

Preferably the scanning means comprises a video camera.

Since the field of view is illuminated consecutively by the two light sources, it is possible to use a monochromatic video camera.

However where the product end face can include features which it is desirable to be able to identify in the video signal, if they are present, a colour video camera may be employed either in addition to or in place of a monochromatic video camera.

In a preferred embodiment the camera and light sources are triggered together, first the camera and the said one light source and then the camera and the said other light source.

The camera is thus successively presented with an image comprising the field of view illuminated by the pattern of laser lines followed by an image corresponding to the whole field of view illuminated in a generally uniform manner so that the signal produced by the camera comprises successively a first patterned picture signal followed by a second uniformly illuminated picture signal.

Information on the size and shape of the product end face may be determined by processing an image signal derived from the first picture signal.

Where a monochrome camera is used the two picture signals will be monochrome video signals typically containing 256 or more shades of grey and the processing may include thresholding the video signal on a grey level basis as well as determining discontinuities in, or departures from the inclination from a given azimuth of, the pattern of parallel lines.

Where a colour camera is used the two picture signals will be colour video signals, typically in RGB format, and processing may include selection according to colour as well as determining discontinuities in, or departures from the inclination from a given azimuth of, the pattern of parallel lines.

Preferably memory means is provided for storing information on the components of the machine which in use extend into the field of view of the scanning means, and signals obtained from the stored information are employed to gate the video signal to exclude video signal corresponding to regions of the field view which are known not to contain any part of the product end face.

Preferably the angle which the parallel lines make relative to the end face is adjustable, so that the lines cross the end face at a specific given angle, and in general only those parts of the field of view of the scanning means which are crossed by lines of the appropriate wavelength, and which are at that given angle, will correspond to the end face of the product, while parallel lines in the field of view at other angles indicate a region in the field of view which is not part of the end face of the product.

Conveniently gating operates to exclude video signal of parallel lines crossing flat regions of the machine parallel to the end face of the product to leave a residual video signal of parallel lines only where they cross the product end face.

Signals defining an electronic mask to be used inter alia for gating the second picture signal may be generated from the residual video signal using image-processing techniques. The mask also defines the size and shape of the product end face.

Points in the first picture signal at which the parallel lines change direction or disappear can be determined using image processing techniques, and using a point joining algorithm these points can be joined by software to generate an electronic mask as aforesaid which can be employed for gating purposes and also equates to the size and shapes of the product end face. The parallel lines also change direction or disappear where there are holes or cavities in the end face of the product. A point joining algorithm technique can thus be used to detect the presence and extent of holes and cavities in for example rolled meat products and certain cheeses.

If a source of white light is provided for illuminating the whole of the region in the field view of the scanning means, and the latter is a colour video camera, a full colour video signal of the region will be produced, and the mask can be used to gate the full colour video signal to remove parts thereof which do not correspond to the product end face.

The gated full colour or monochromatic video signal of the product end face may be subjected to image processing software to identify signal content therein corresponding to at least one particular product feature.

By using a colour camera, differently coloured regions of the product end face can be distinguished by the software by reference to colour, and measurements using further software can be performed on the signals corresponding to a region or regions of a particular colour.

A vision system as aforesaid, which produces a full colour video signal, may be used to scan the end face of a foodstuff such as cheese or meat. Where meat contains lean and fat regions, signals relating to the latter can be distinguished from those relating to the former on the basis of colour. In addition blemishes or cavities in cheese, or growths such as cysts in meat and other items unwanted in the final product, can be identified by image processing software acting on the colour video signal of the end face of the product and slices containing such unwanted features identified and isolated downstream of the slicing station.

Where grey-level thresholding tools (software or hardware) are to be used to determine different regions in the end face such as regions of lean meat (which will tend to be dark grey) and regions of fat (which will tend to be light grey or white), or cavities or discoloured regions in the end face of a piece of cheese, a colour signal may be converted to a monochrome grey-level image signal, to enable thresholding to be performed thereon, after which measurements using further software can be performed on the residual signals.

Where a monochrome camera is employed it will produce a grey scale image signal directly and the measurements can of course be performed thereon.

In any vision system producing a monochromatic or full colour video signal, software or hardware calliper tools may be employed to measure the height and/or width of the product end face, and/or of different visually distinguishable regions in the end face, and area values of the measured regions can be computed.

The following dimensions of the end face of a meat product may be obtained from the video signal, namely:

Overall area of end face, Area of lean meat in end face, Height of end face, Area of fat within the end face, Width of end face, and Number, size and distribution of holes/cavities.

A ratio of lean to fat areas may be computed from the two area values.

A vision system as aforesaid may form part of a product slicing machine and the measurements and/or dimensional values are sent to a slicer controller, to control the thickness of the next slice to be cut.

In such a vision system the dimensional values may also be sent to slice and pack grade-level decision logic, to control down-line gates.

Where a monochrome grey scale video signal is produced, the latter may be sent to a feature classifier which in use is adapted to return an electronic flag to indicate whether or not a particular feature can be found in the video signal of the end face.

In such a vision system a state vector machine (SVM) based feature classifier may be employed and if a feature is found to be present, its dimensions are determined.

The invention of particular use in assessing the end face of a side of bacon, and, in this event the classifier operates to determine if certain bacon muscle is present or not in the end face, and if so its dimensions are measured.

As previously mentioned, when the vision system forms part of a slicing machine for slicing a side of bacon the dimensional values may be sent to a slicer controller to control the thickness of the next slice of bacon to be cut.

According to another aspect of the invention, there is provided a method of assessing an end face of product which is to be sliced and routing the slice according to the assessment, and which is viewed by a video camera set in front, but to one side of the product end face, comprising the steps of:—

1) using white light, illuminating the camera field of view to form a first picture signal, 2) using substantially monochromatic light centred on a selected wavelength forming a plurality of spaced apart parallel lines which as seen by the camera will appear to cross the camera field of view at an acute azimuth angle to the scanning direction of the camera, to form a second picture signal, 3) selecting the strobe timing of the light sources so that video signal content produced by light from one sources is readily separable from video signal content produced by light from the other source, 4) selecting the position of the monochromatic light source relative to the product end face so that the parallel lines of light in the camera field of view extend at one angle across the product end face, but at a different angle where they intersect a side or top surface of the product, 5) identifying any part of the second picture signal which relates to lines in the field of view which extend at the said one angle, and separating each such part from parts of the signal which relates to lines which extend at other angles, to leave as a residual line image signal, only signal content which corresponds to lines in the field of view which extend thereacross at the said one angle, and therefore identify the end face of the product, 6) generating an electronic mask from the residual line image signal which corresponds to the shape and size of the end face, 7) creating from the electronic mask a gating signal, and gating the first picture signal so as to exclude therefrom all video signal content not coincident with the mask signal, to form a residual picture signal, corresponding only to the product end face, 8) separating those parts of the residual picture signal which relate to lighter coloured regions of the end face from those parts which relate to darker regions of the end face, to to leave a partial video signal relating only to one or the other type of region, 9) computing the total area of the end face from the residual picture signal or the mask, and the total area of the regions of the end face corresponding to the partial video signal, and 10) computing a grade value for the product from the area value of the end face and the area value from the partial video signal, and comparing the grade value with at least one preset numerical value, and directing a subsequently cut slice of the product to one or another of two or more collection points depending on the grade value computed for the end face of the product from which the slice has been cut.

Where the video signal is a colour video signal the separation of step (8) may be performed on the basis of colour or it may be converted to a monochrome signal and step (8) performed by thresholding.

Where the video signal is a monochrome video signal the separation of step (8) is most simply performed by thresholding.

The invention also lies in a combination of a slicing machine with a vision system as aforesaid when adapted to operate in accordance with the foregoing method.

Embodiments of the invention will now be described with reference to the accompanying drawings, in which:

FIG. 1 is a perspective view of a slicing machine embodying the invention;

FIG. 2 is a perspective view to an enlarged scale of the cutting region of the machine of FIG. 1 with the safety covers removed showing the blade, delivery conveyor and a product collecting jump conveyor;

FIG. 3 is another perspective view of the cutting region from a different angle showing the laser housing, the camera housing and the illumination light source;

FIG. 4 is a further perspective view of the cutting region, from above, showing the extent to which the light from the illuminating light source will illuminate the blade and the cut end face of the product and the immediate environs of the blade;

FIG. 5 is a view from above, with the cover removed, of the laser source;

FIG. 6 is a view from above, with the cover removed, of the camera housing;

FIG. 7 is a diagrammatic illustration of how the laser source, illuminating light source and camera interact to provide signals for processing, and for display on a monitor screen;

FIG. 8 illustrates one of the screen displays which can be obtained on the monitor;

FIG. 9 is a side elevation of the machine shown in FIG. 1 and shows the general position of the laser;

FIG. 10 is a block schematic diagram of the vision system, video signal processing stage and controls in the machine of FIG. 1 et seq;

FIG. 11 is a timing diagram which should be read in conjunction with FIG. 10;

FIG. 12 is a screen display of the lines of red light crossing the cut end face of a side of bacon (and the end of the delivery conveyor) at approximately 45° relative to the plane of the delivery conveyor and which have been electronically gated to remove signal content not in the immediate vicinity of the end face;

FIG. 13 is a screen display of the coarse mask which remains after thresholding the signal corresponding to the area crossed by the 45° lines, from the signal corresponding to the remainder of the end face image;

FIG. 14 is the image signal obtained by eroding and then dilating the signal producing the outline of FIG. 13, to remove small dark islands separated from the main region which is crossed by the 45° lines, to produce a final mask signal corresponding to the shape of the end face of the product;

FIG. 15 is a screen display showing the end face of a side of bacon on the delivery conveyor illuminated by the general area strobe light.

FIG. 16 is a screen display of the signal remaining after the signal which produces the FIG. 15 image is gated by the mask signal of the FIG. 14, to allow the areas of the darker and lighter regions of the end face to be computed;

The slicing machine in FIG. 1 is shown with all the safety covers in place, and comprises a housing 10 within which an inclined product delivery conveyor (not shown) is located, a product exit 12 through which a collection conveyor (not shown) extends, onto which cut product is delivered, and a control panel 14. The covers are denoted by 16, 18, 20 and 22.

With covers 16 and 18 removed as in FIG. 2, the lower end of the inclined delivery conveyor 24 can be seen through an opening 26 in a plate 28 on which is mounted a slicing blade 30 which is rotated in use by a motor (not shown) mounted to the rear of the plate 28. The drive shaft is visible at 32 and the blade is located on the shaft in a conventional manner by being sandwiched between discs such as 34, and secured in place by a nut 36.

In front of, and to the left of the blade, is a camera housing 38 with removable cover 40, and in front and to the right is a laser housing 42 with a removable cover 44.

Also to the right of the blade and located nearer to the blade is a lamp assembly 46 for illuminating the lower end of the delivery conveyor 24.

The housings 38 and 42 are supported by frame members 39 and 43 and the lamp assembly 46 is carried by the cover 18.

The two housings 38 and 42 are joined by a rigid arm 48 and the lamp can be seen at 50 in both of FIGS. 2 and 3.

In front of the lamp and collimating lens is a window assembly 52 which includes one or more filters such as 54 (see FIG. 4) for example a neutral density filter to as correct the intensity the light passing through the window 52 to give uniform light coverage of the area of interest.

The lamp 50 may be a strobe lamp but is more preferably a power LED array or LED spot lamp which produces a diverging beam of generally white light. A filter can be employed to alter the wavelength of the light, so that the end face of the product will be illuminated by light whose wavelength gives the best image of the product or enhances product features before analysis. The illumination can be seen emanating from the window, as a diverging beam 56.

Within the housing 42 are two red lasers 58, 60 best seen in FIG. 5. Each produces a slightly diverging beam of red light which is split into a plurality of parallel spaced apart thin lines of red light using an integral grating or mask.

Two lasers are used so as to produce a sufficient number of parallel lines across the field of view, to encompass the whole of the end face of the product, which as shown comprises a side of bacon. Other product could be lamb or pork which is to be sliced into steaks or chops, beef which is to be sliced into steaks or cheese which is to be sliced. The use of two lasers can result in supernumerary lines and these are masked by one or more plates in the housing 42, so that one pattern of lines from one laser can be positioned next to that from another laser without the supernumerary lines from one laser corrupting the pattern of lines from the adjacent laser.

Typically the two lasers produce 15° divergent beams and together produce a total of 66 lines, at a spacing of 5 mm on the product end face, in which the lines lie at 45° to the front end of the delivery conveyor (which corresponds to the plane of that conveyor at that point along its length, and which will normally extend generally horizontally).

However the number of lines, the spacing, the 45° angle and the number of lasers is a matter of design choice, and the invention is not limited to the illustrated arrangement of 2 lasers.

By projecting the spaced apart parallel lines of light from the side of the product delivery conveyor at an angle towards the end face of the product which is generally perpendicular to the plane of the delivery conveyor, the lines will appear orientated at 45° on the end face. However, as shown in FIG. 12, as the lines of laser light leave the end face and begin to traverse the visible upper surface of the product, which is generally parallel to the plane of the delivery conveyor, and therefore at approximately 90° to the end face, they will change direction and trace a corresponding number of generally parallel lines at a rather different angle from that which the lines traverse the end face of the product. In FIG. 7 the end face of the product (typically a side of bacon) is denoted by 62 and the laser lines traversing the end face are denoted by 64, those traversing the upper surface of the product are denoted by 66 and those traversing the generally flat upper surface of the delivery conveyor by 68.

The exit end of the conveyor is protected by a plate 70 defining a straight edge 72, which also constitutes the shear plate for the blade 30. The left hand end of the conveyor (as viewed from the lasers) is defined by a plate 74 which defines a second straight edge 76 perpendicular to the edge 70, against which the left hand end of the product is abutted.

A camera 78 is shown in FIG. 6, located within 38, which views the illuminated region.

The straight edges 72 and 76 define the bottom and left hand edges of the field of view of interest (as seen by the camera 78), and its field of view is further delineated by an aperture 80 in a wall 82 located in front of the front wall 84 of the camera housing 38. The wall 84 also includes an aperture 86. The camera is adjustable in height; inclination and angle by being mounted about a 3-axis assembly generally designated 88.

The camera 78 is also shown in FIG. 7 and the view seen by the camera is shown in the screen display on the monitor 90, which forms part of the control panel 14, shown in FIG. 1. The displayed image shows the upright and transverse plates 74, 70 and the end face 64 of the product.

Typically a device such as an upper conveyor or thrust bar (shown in dotted outline at 92 in FIG. 7) overlies the upper surface of the product but terminates a short way back from the end face so as to be well clear of the path of the blade 30. Any such device will also present a face on which the laser light can form lines, and at least some of the end of the device can be generally parallel to the product end face 68, so that the red laser lines will traverse 92 at a generally similar angle of inclination as they traverse the end face 68.

There is also a region to the right hand end of the product end face which may contain other parts of the machine which can produce spurious reflections of red laser light, some of which can be at a similar angle to that of those traversing the end face 68.

However it is possible to electronically gate out the signals in the video signal from the camera 78 in a signal processing stage 94 so that the signals sent for quantitative processing by 96 (a PCL) are limited to those arising within a generally rectangular area defined by an electronically generated, generally rectangular window, shown dotted at 98 in FIG. 7. The left hand and bottom edges of the window are set to correspond to the straight edges 74 and 70. The upper and right hand edges are set manually, or automatically by window defining software or firmware in 94, relative to the left hand and bottom edges 76, 70.

It will be appreciated that since plates 74 and 70 are fixed relative to the machine and therefore the camera 78, their x,y coordinates in the camera field of view will be constant, and the left hand and bottom edges of the window 98 can therefore be defined with reference to x and y coordinates within the photosensitive device (not shown) in the camera 78.

If the latter is read out on a pixel by pixel basis the x,y coordinates are definable by reference to the pixel matrix of the photosensitive device in the camera.

If the video signal is produced by line scanning at a constant scan rate, to allow different points on the photosensitive device to be defined by time lapse from the beginning of a scan, the x,y coordinates of the left hand and bottom edges 74, 70 (and therefore left hand and bottom edges of the window 98) can be defined in a similar time-related manner.

In a similar manner, the x,y coordinates of the top and right hand edges of the window 98 can be defined with reference to the pixel matrix, or by reference to lapsed time from the beginning of a scan.

The camera includes a lens 100.

In order to prevent spatter and debris produced as the product is cut by the blade 30, from obscuring the camera 78 or any window in front of the lens, a curtain of moving air 102 from a source 104 is created in front of the camera, and in particular in front of a polycarbonate protective window (not shown) located in front of the lens 100.

A heater 106 is also provided to warm the air in the region of the camera, to reduce condensation and prevent the lens or window 100 from misting up when the machine is operated in a low temperature environment, as may be required if the product is a foodstuff that needs to be kept below a particular temperature such as 4° C. or lower.

Where the product is not of uniform height from left to right (as in the case of bacon, lamb, pork or beefsteak) the product compressing device 92 may be adapted to follow the general trend of the product cross section, and in that event may extend across the camera field of view non-parallel to the straight edge defined by 70. In that event the upper edge of the window 98 may be adjusted either manually, or automatically within 94, so as to follow the inclination of 92. Alternatively a further smaller window may be electronically generated, typically within 94, in which the upper edge is inclined relative to the lower edge, so as to correspond to the inclination of 92, and the signals released by the first window are gated by the further smaller window.

The effect of the further smaller window can be seen in FIG. 8, in which the generally rectangular primary window is designated by 108 and the further window by the slanting upper edge of the outline 110, in the screen shot of a display on the monitor 90.

FIG. 9 shows diagrammatically the inclination of the delivery conveyor housing 10, the position of the lasers 58, 60 and the blade 30, and of adjustable feet 112, 114 by which the machine can be levelled, and/or raised or lowered. This allows it to be aligned with an exit conveyor (not shown) which accepts cut product from a jump conveyor 116 (see FIGS. 2, 3 and 4) onto which slices of product fall after being severed from the leading end of the product on the delivery conveyor. A jump conveyor is described in U.S. Pat. No. 5,125,303.

The described system allows general illumination of the end face without the need for complex lighting arrangements. The general illumination can be from a white light source, a monochrome source or from two or more sources of differing colour to obtain good contrast between different features of different types of product.

In particular, by using a laser line generator which is strobed at a different time from the light used to generally and uniformly illuminate the end face, the latter can be differentiated from the remainder of the field of view, and video signal relating to the end face can be separated readily from video signal relating to the rest of the field of view, to provide signals on which image processing can be performed to assist in identification and quantification of features within the cut face.

The camera 78 and the strobe controller 79 are synchronised by a pulse signal from a blade sensor 128 mounted on the axis of the slicer blade 30. The strobe controller turns on the structured light laser 81 during the first camera exposure and then turns on a uniformly illuminating LED spot light 83 during the second camera exposure. The first camera picture signal of each pair is thus of the structured light laser lines crossing the field of view and the second camera picture signal of the pair is a of the whole viewed region. The laser 81 may be comprised of two lasers such as 58,60 as shown in FIG. 7.

The two light sources may be operated as described or the order of operation may be reversed. However as the laser line picture signal will normally need to be processed first, it is expedient to operate the system as first described.

The LED spot light may be left on for the remainder of the blade rotation, if desired. This gives useful illumination to the slicing area inside the guard of the slicer. Leaving the light on also reduces harmful or misleading strobe lighting effects on machine operators if the machine has to be operated with one or more of the covers or guards not in place.

The face of the product is screened from sources of light other than those described above in order to produce the clearest possible images. This is conveniently done by the slicer guards or covers such as 16-22 which normally enclose the region containing the product, when in use.

In the slicer control system of FIG. 10, images of the product are captured, ideally by the system which will be determining the slice thickness and thereafter doing the grading. A camera may be located in a position which is close to where the slicing is to occur to obtain images which are close enough to the slicing station to start the classification process.

The camera 78 provides images to a signal pre-processor 118 for supply to a vision computer 120. This includes a frame grabber 122. Signals are grabbed in response to trigger signals from the sensor 128 which in turn is triggered by the rotation of the blade 30.

A gating device 121 is controlled by signals from a control unit 123 which in turn is controlled by data from a memory device 125, which is triggered to release data stored therein by signals from the blade sensor 128 using the camera readout scan as a timebase synchronising signal. The operator control terminal 14 may used to enter the data in the memory device corresponding to the size and position of fixed objects such as machine and delivery conveyor parts in the camera field of view. Alternatively the data may be obtained from an image signal from the camera 78 when set to view only the end of the delivery conveyor when no product is present. In either case the data is such that when read out in synchronism with the blade rotation and the camera readout, it can be employed via 123 to inhibit image signals relating to the fixed objects from reaching the processor 124.

Appropriately positioning 128 ensures that the camera only images the end face 68 when the blade 30 is clear of the face 68, as shown in FIG. 2.

The greyscale image signals are gated by an electronic mask/gating signal obtained from 124 to leave image signals of the product cut face. These are then analysed further in 130 to measure the area of fat and the area of lean. Mean density values for fat and lean meat together with the fat and lean area measurements may be used to calculate in 130 the thickness to which a slice must be cut to give a particular weight. Module 134 provides signals to servo amplifiers 136 to control servo motors 132 which control the slice thicknesses.

The height, width and lean fraction of the end face are determined from the parameters of to the end face area image signals in a feature classifier 138. Signals from 138 pass to 134 and also to other logic in 140. This determines whether a desired feature is present in the image of the end face and if so what its key dimensions are using vision processing calliper tools. The values of these key dimensions allow a grading of the next slice, and the grade decision is passed to an array of gates 142 to control the delivery of the next slice to be cut, to an appropriate packing station 144.

The logic 140 compares the grade information from 138 with a series of pre-set thresholds for each parameter. Depending on the pre-set threshold settings, the slice (or a pack which is to contain two or more slices) is tagged as a reject, or a Grade A, B or C etc, and is diverted into the appropriate packing station(s) which process that grade of product.

Reject statistics are compiled in 141.

Data classification has been one of the important elements in the growing field of Artificial Intelligence (AI) and machine learning. In the general case the machine is presented with a set of inputs that represent some data point, and is asked to suggest an output (classification) based on a set of pre-stored conclusions (information usually referred to as a knowledge base).

Perhaps the most important feature of any classification algorithm in the realm of machine-learning is its ability to build a “knowledge-base” based on a set of training data, or in other words, to learn. A training data set may for example encompass thousands of images (the inputs) which are pre-classified (by a human operator) in an off-line procedure, into different score-groups (the outputs). Using a method known as supervised learning, the algorithm parses all of these input/output pairs and attempts to determine (ie to “learn”) the function that appropriately maps the inputs onto their corresponding outputs. Using a formal learning method, it builds some knowledge that is based on the training set which can later be used to classify other data into sets. Usually characteristics (known as vectors) of the inputs are identified as determining the particular score for any input, and these vectors are looked for in the future inputs.

In the realm of supervised learning algorithms, there are many options. Neural Network and State Vector Machine (SVM) systems have been successfully implemented and enjoy widespread use. SVM's appear to have very good generalisation behaviour, which is a learning machines ability to draw conclusions from learning samples and apply them to other pattern instances, which it has never seen before.

An SVM based system is employed in the off-line classifier incorporated into the present system of FIG. 10. The preferred SVM based system is the MANTO (RTM) system (particularly MANTO 2) as developed and supplied by Stemmer Imaging (RTM) of Germany.

At the heart of the MANTO system there are two components: One is a non-linear multi-resolution filter (MRF) for image-preprocessing, which detects relevant features at different scales and transforms image information into a feature vector. The other ingredient is a learning and pattern classification algorithm, based on the technology of support vector machines (SVMs), as has been developed at various universities and research laboratories.

The MANTO system recognises an image pattern by first applying an MRF to the image and then feeding the resulting feature vector into SVM, which then decides on class membership and quality. The knowledge which enables MANTO to do this is contained in a data-structure called the MANTO-classifier (MCF), which contains the MRF parameters and the knowledge obtained by training from lists of learning samples. MANTO 2 allows the classifier to determine and express how nearly an image represents an instance of particular classification (regression). A probability can be given to this, producing a sliding scale for the feature property of interest. e.g. if a bacon muscle is between 75 mm and 100 mm long, but nearer 100 mm, the MANTO 2 system might assess its length as 92 mm.

To this end threshold values for the comparators and logic in 140 are obtained using state vector machine (SVM) techniques. In particular 138 comprises a state vector machine (SVM) based feature classifier. This allows images to be classified according to the presence or absence of feature(s) (vectors) of interest, and further classified according to the properties and dimensions of feature(s) of interest, eg the shape of the end face and/or of the length of a particular individual, region common to the end faces, such as a region of muscle in bacon.

The grade attributable to a slice to be cut, obtained from 138, may be used to direct the slice thickness calculation in 134 such that one grade of product is sliced at a different thickness from other grades. This would generate, as an example, differing fixed weight slices or packs, for different grades of product.

Items 150, 152, 154 and 156 comprise a suite of off-line classifier building and testing tools which assists with the classification, in that a person can perform a classification visually, and identify whether a desired feature is present or not. If the feature is present, a line can be drawn on the screen image showing a dimension of the feature, using a mouse or tracker ball device. The length of the line is measured and recorded in 150 and 154. The image signals can be scaled to real world dimensions so that the length extracted from the drawn line can be displayed and saved in conventional units of length with an image of the product end face on which the measurement has been made.

Collection of data from specimen product end faces is undertaken prior to operation of the machine, and can be done on initial installation and left, or performed when the machine is to be used to slice a new batch of product, or completely different product.

A check on the decision-making accuracy of 138 can be performed off-line by running a software program to present data of previously classified images in 150 to classifier logic in 154 in order to analyse its performance. Batches of images can be processed to produce statistics on the neural network accuracy.

The system shown in FIG. 10 also includes a grading supervisor module 146. This is supplied with data from 144 and a check weigher 148 so as thereby to monitor the numbers of product slices or packs being classified into each grade. The grade acceptance thresholds in 140 are controlled by 146 which in turn can be altered by signals from the control terminal 14 so as to override neural classifier produced criteria, so that a constant throughput can be maintained if desired, whereby a given grade will always be the same percentage of the overall output. In this way minor variations in input product characteristics will not result in increased percentages of slices or packs graded as rejected or a lower grade. Using such a technique, the acceptance thresholds can be adjusted so that for example a similar percentage of product will be placed into each grade category irrespective of the actual input quality, and the properties of each grade will change according to the properties of the input material.

Product end-face image data from the frame grabber 122 is not only supplied to 124 and 126, but is also available for storing as a plurality of classified images in a product analysis tool 150 which collects and classifies product images from 122. Image files of differently classified product end faces are stored in 150, with the related feature classification information. A classifier structure control tool 154 determines parameters by which image signals relating to end face parameters can be classified by 138 and supplies these to 138. Product grade is determined in 138 and the grade information is sent to the grade threshold and comparator logic 140. The output from 140 comprises product grade command information for controlling sorter gates for cut product, as previously described.

The classifier structure control tool, 154 also provides data for off-line software testing by 156. Pre-classified images, can be used in 156 to optimise the classifier rules in 154 to in turn alter grade determination by 138.

The threshold data in 140 can therefore be updated fully automatically without operator intervention or manually by allowing operator input commands from 14 to override data stored in 140 in response to statistics displayed by 14 (typically but not exclusively by the monitor 90) to the operator. These could show that an inappropriate set of thresholds is being employed in 140 following a change of circumstances, or input product, or customer requirements.

FIG. 11 shows the occurrence of strobed lighting sequence camera operation and signal processing events in relation to blade position.

Where the machine operates to deliver the product to the cutting station at a constant rate, the slice thickness is controllable by altering the time delay between cuts. This may be easily achieved by driving the blade 30 through a variable speed drive, and slowing down or speeding up the blade after a cut has been made, so that more or less of the product has been advanced into the path of the blade before the latter next enters the product.

Where the blade speed is not controllable the thickness adjustment is made by speeding up or slowing down the delivery conveyor, so that more or less product has been advanced through the cutting plane before the next cut is made.

The present invention is applicable to either technique, but the latter is the preferred one.

From FIG. 11 it will be seen that the high speed data capture and processing is possible using a CCD camera and a high speed computer. This can enable a decision on slice thickness to be made in the time interval after the blade 30 leaves the product and before it has rotated to the position at which it will next enter the product.

FIGS. 12 to 16 illustrate what will be seen by the operator on the monitor display 90 depending on which stage of processing the video signal is derived from for display, and

-   -   FIG. 12 shows the red image before processing by 124 to exclude         non-45° red lines,     -   FIG. 13 shows an intermediate stage in 124 after thresholding         the video signal of FIG. 12,     -   FIG. 14 shows the output from 124 after eroding the signal of         FIG. 13 to remove small unconnected detail and dilating the         resulting signal to merge the components into a single         monochrome shape, corresponding to the shape of the end face of         the product, so as to exclude any extraneous features from the         image,     -   FIG. 15 shows the original colour picture image without any         processing.     -   FIG. 16 shows the result of gating the signal of FIG. 15 with a         window or mask generated from the signal of FIG. 14 and         thresholding so as to convert those parts of the video signal         which relate to light coloured regions of the signal of FIG. 15         to white, and those parts of the video signal which relate to         grey regions in FIG. 15, to black; thereby yielding a two phase         representation of the end face, in which lean regions of the         product are black and fat regions are white. The lean regions         can thereby be quantified by appropriate processing of the         “black” signal content of the signal producing the FIG. 16         display.

If the area of fat is required the signal producing FIG. 16 can be inverted so that lean regions are white and fat appears as black, and the black area quantified by appropriate processing of the black signal content of the inverted signal.

The area of the whole of the end face can be obtained by adding the computed area value of lean to the computed area value of value fat.

The proportion of lean to overall area can be calculated by comparing the lean area value with the total computed area value.

The value of lean to fat is calculable by comparing the area value of lean to the area value of fat.

The height and width of the end face in FIG. 16 can be measured by conventional image calliper processing in 138. The results can be sent to 140 for grade threshold comparison, as described above. 

1-39. (canceled)
 40. A slicing machine for cutting slices from an end face of a food product mounted in the machine, wherein the machine includes a vision system arranged to view the end face during slicing, and the vision system includes illumination apparatus for illuminating a region containing the end face, the illumination apparatus including a uniform light source for illuminating the region in a generally uniform manner, a laser light source configured to produce a pattern of spaced apart parallel lines of light, and a strobe controller arranged to strobe the two light sources to illuminate the end face consecutively using first one and then the other of the two light sources, wherein the vision system is arranged to differentiate between video signals generated during slicing and relating to the end face from those relating to the remainder of the field of view and provide measurements relating to the area of the end faces presented to the vision system by reference to the lines of light.
 41. A slicing machine as claimed in claim 40 wherein the laser light source comprises a laser with a parallel line pattern generating optical head.
 42. A slicing machine as claimed in claim 40, wherein the video apparatus and each light source are triggered together, first the video apparatus and the laser light source and then the video apparatus and the uniform light source, whereby in use the video apparatus is successively presented with an image comprising the field of view illuminated by the pattern of laser lines followed by an image corresponding to the whole field of view illuminated in a generally uniform manner so that the signal produced by the video apparatus comprises successively a first patterned picture signal followed by a second uniformly illuminated picture signal.
 43. A slicing machine as claimed in claim 40, wherein the angle which the parallel lines make relative to the end face is adjustable, so that the lines cross the end face at a specific given angle, and in general only those parts of the field of view of the camera which are crossed by lines of the appropriate wavelength and which are at that given angle will correspond to the end face of the product, while parallel lines in the field of view at other angles indicate regions of the field of view are not part of the end face of the product.
 44. A slicing machine as claimed in claim 40, wherein the vision system is operable to exclude video signal of parallel lines crossing flat regions of the machine parallel to the end face of the product to leave a residual video signal of parallel lines only where they cross the product end face.
 45. A slicing machine as claimed in claim 44, wherein the vision system is operable to generate signals defining an electronic mask to be used inter alia for gating the second picture signal from the residual video signal using image-processing techniques.
 46. A slicing machine as claimed in claim 40, wherein the vision system is operable to determine points at which the parallel lines change direction or disappear using image processing techniques and to join these points to generate an electronic mask which can be employed for gating purposes and equates to the size and shape of the product end face.
 47. A slicing machine as claimed in claim 40, wherein the vision system is operable to detect the presence and extent of holes and cavities in the product end face by detecting where the parallel lines change direction or disappear.
 48. A slicing machine as claimed in claim 46, wherein the vision system is operable to gate video signal generated during uniform illumination of the region by using the mask to remove parts thereof which do not correspond to the product end face.
 49. A slicing machine as claimed in claim 48, wherein the vision system is operable to use image processing software to identify signal content in the gated video signal corresponding to at least one particular product feature.
 50. A slicing machine as claimed in claim 40, wherein the video apparatus is a colour camera so that differently coloured regions of the product end face can be distinguished by software by reference to colour, and measurements using further software are performed on the signals corresponding to a region or regions of a particular colour.
 51. A slicing machine as claimed in claim 40, wherein the measurements and/or dimensional values obtained from the signals from the vision system are sent to a slicer controller to control the thickness of the next slice to be cut.
 52. A slicing machine as claimed in claim 51, wherein the dimensional values are also sent to slice and pack grade-level decision logic to control down-line gates.
 53. A slicing machine as claimed in claim 40, wherein a state vector machine (SVM) based feature classifier is provided to detect a predefined feature.
 54. A method of assessing an end face of product which is to be sliced and routing the slice according to the assessment in which the end face is viewed by a video camera set in front, but to one side of the product end face, comprising the steps of:— 1) illuminating the camera field of view to form a first picture signal, 2) using substantially monochromatic light centered on a selected wavelength forming a plurality of spaced apart parallel lines which as seen by the camera will appear to cross the camera field of view at an acute azimuth angle to the scanning direction of the camera, to form a second picture signal, 3) selecting the strobe timing of the light sources so that video signal content produced by light from one source is readily separable from video signal content produced by light from the other source, 4) selecting the position of the monochromatic light source relative to the product end face so that the parallel lines of light in the camera field of view extend at one angle across the product end face, but at a different angle where they intersect a side or top surface of the product, 5) identifying any part of the second picture signal which relates to lines in the field of view which extend at the said one angle, and separating each such part from parts of the signal which relates to lines which extend at other angles, to leave as a residual line image signal, only signal content which corresponds to lines in the field of view which extend there across at the said one angle, and therefore identify the end face of the product, 6) generating an electronic mask from the residual line image signal which corresponds to the shape and size of the end face, 7) creating from the electronic mask a gating signal, and gating the first picture signal so as to exclude therefrom all video signal content not coincident with the mask signal, to form a residual picture signal corresponding only to the product end face, 8) separating those parts of the residual picture signal which relate to lighter coloured regions of the end face from those parts which relate to darker regions of the end face, to leave a partial video signal relating only to one or the other type of region, 9) computing the total area of the end face from the residual picture signal or the mask, and the total area of the regions of the end face corresponding to the partial video signal, and 10) computing a grade value for the product from the area value of the end face and the area value from the partial video signal, and comparing the grade value with at least one preset numerical value, and directing a subsequently cut slice off the product to one or another of two or more collection points depending on the grade value computed for the end face of the product from which the slice has been cut.
 55. A method as claimed in claim 54, where the video signal is a colour video signal and the separation of step 8 is performed on the basis of colour, or the colour signal is converted to a monochrome signal and step 8 is performed by thresholding. 